<?php
/**
 * Created by PhpStorm.
 */

use Biz\service\activity\Coupon as sCoupon;
/**
 * @deprecated
 */
class ReceiveAction extends ActionPlugin
{
    const USER_LEVEL = self::LEVEL_REGISTER;
    const ACTION_TYPE = "coupon";

    public function main()
    {
        $couponId = $this->getRequest()->getPost('coupon_id', '');

        $result = sCoupon::receive($this->uid, $couponId);

        $this->setSuccess(['coupon_info' => $result]);
    }

}
